<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>model</title>
    <script src="https://unpkg.com/vue"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">

</head>
<body>
<div id="app">
    <login></login>
</div>

</body>
<script>
    var login = {
        template: '<h1>这是登录组件</h1>'
    }

var vm = new Vue({
    el: '#app',
    data: {
        msg: '大家好哈哈哈哈，你们好啊。'
    },
    methods:{

    },
    components:{
        login: login
    }

})
</script>
</html>